package com.sdry.service.impl;/**
 * @ClassName: GoDownEntryServiceImpl
 * @ProjectName parts
 * @Description: TODO
 * @author cb
 * @date 2018/7/3014:30
 */

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sdry.annotation.BaseService;
import com.sdry.base.BaseServiceImpl;
import com.sdry.entity.GodownEntry;
import com.sdry.entity.GodownEntryExample;
import com.sdry.mapper.GodownEntryMapper;
import com.sdry.service.GoDownEntryService;

/**
 * @ClassName: GoDownEntryServiceImpl
 * @ProjectName parts
 * @Description: 入库
 * @author cb
 * @date 2018/7/3014:30
 */
@Service
@Transactional(rollbackFor = Exception.class)
@BaseService
public class GoDownEntryServiceImpl extends BaseServiceImpl<GodownEntryMapper, GodownEntry,GodownEntryExample> implements GoDownEntryService {

	@SuppressWarnings("unused")
	private static final Logger LOGGER = LoggerFactory.getLogger(GoDownEntryServiceImpl.class);

	@Autowired
	GodownEntryMapper godownEntryMapper;

	@Override
	public int delete(String str) {
		return godownEntryMapper.deleteByPrimaryKey(Long.parseLong(str));
	}
   
}
